<?php
	function ParsSearch($ps_b = null,$ps_depth = 0){
		$ps = null;
		$ps_e = null;
		$ps = strpos($this->fp_str,$this->sb_begin ,$ps_b);
		if($ps == FALSE){
			$ps_e = strpos($this->fp_str, $this->sb_end, ++$ps_ref);
			$ps_depth--;
			if ($ps_depth == 0) return $ps_e;
		}	
		else $ps_depth++;
		$ps_ref = $ps; 
		$ps = $ps_e;
		$ps_res = $this->ParsSearch(++$ps_ref, $ps_depth);
		if ($ps_depth == 0) return $ps_res;		
	}